// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ConsumerId',
        footer: "Foots",
        cnName: '客户管理',
        name: 'consumermodel',
        url: "/consumermodel/",
        sortName: "ConsumerId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ConsumerCode":"","ConsumerName":"","ConsumerAbbreviation":"","ConsumerPhone":"","SocialCredit":"","ConsumerAdress":"","ConsumerRemarks":""};
    const editFormOptions = [[{"title":"客户编码","field":"ConsumerCode","type":"text"},
                               {"title":"客户名称","field":"ConsumerName","type":"text"}],
                              [{"title":"简称","field":"ConsumerAbbreviation","type":"text"}],
                              [{"title":"联系方式","field":"ConsumerPhone","type":"text"},
                               {"title":"社会信用代码","field":"SocialCredit","type":"text"}],
                              [{"title":"地址","field":"ConsumerAdress","type":"textarea"}],
                              [{"title":"客户备注","field":"ConsumerRemarks","type":"textarea"}]];
    const searchFormFields = {"ConsumerCode":"","ConsumerName":""};
    const searchFormOptions = [[{"title":"客户编码","field":"ConsumerCode","type":"="},{"title":"客户名称","field":"ConsumerName","type":"like"}]];
    const columns = [{field:'ConsumerId',title:'客户管理id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ConsumerCode',title:'客户编码',type:'string',width:110,align:'left',sort:true},
                       {field:'ConsumerName',title:'客户名称',type:'string',width:110,align:'left'},
                       {field:'ConsumerAbbreviation',title:'简称',type:'string',width:110,align:'left'},
                       {field:'ConsumerPhone',title:'联系方式',type:'string',width:110,align:'left'},
                       {field:'ConsumerAdress',title:'地址',type:'string',width:180,align:'left'},
                       {field:'ConsumerRemarks',title:'客户备注',type:'string',width:180,align:'left'},
                       {field:'SocialCredit',title:'社会信用代码',type:'string',width:180,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}